package com.analysis.mapper;

import com.analysis.entity.CompanyVersionRef;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CompanyVersionRefMapper {

    int insert(CompanyVersionRef ref);

    int deleteById(@Param("id") Long id);

    int update(CompanyVersionRef ref);

    CompanyVersionRef selectById(@Param("id") Long id);

    List<CompanyVersionRef> selectByCompanyId(@Param("companyId") Long companyId);

    List<CompanyVersionRef> selectByVersionId(@Param("versionId") Long versionId);

    CompanyVersionRef selectByCompanyAndVersion(@Param("companyId") Long companyId, @Param("versionId") Long versionId);
}


